public class CPU{
	int speed;
	CPU(){}
	CPU(int m){
		this.speed=m;
	}
	void setSpeed(int m){
		this.speed=m;
	}
	int getSpeed(){
		return speed;
	}
	public String toString(){  
		return "Speed:"+speed;   
	}
	public boolean equals(Object object){  
		if(object==null){        
			return false;  
		}  
		if(this==object){ 
			return true; 
		}  
		if(object instanceof CPU){  
			CPU s = (CPU)object;    
			return this.speed==s.speed;  
		}  
		return false; 
	}
}
